import "package:ct_pa_majordomo/pages/user/index.dart";
import "package:ct_pa_majordomo/pages/main.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:ct_pa_majordomo/utils/stacker.dart";
import "package:ct_pa_majordomo/utils/storage.dart";
import "package:flutter/material.dart";

class TransferStation extends StatefulWidget {
  const TransferStation({super.key});

  @override
  State<TransferStation> createState() => _TransferStationState();
}

class _TransferStationState extends State<TransferStation> {
  void _transfer() {
    String token = storage.getString("token") ?? "";
    Stacker.pushReplacementNamed(
        // const Main(),
      // token.isEmpty ? Keys.LOGIN : Keys.MAIN,
      Keys.MAIN,
      arguments: { "index": 0 },
    );
  }

  @override
  void initState() {
    super.initState();
    Future(_transfer);
  }

  @override
  Widget build(BuildContext context) {
    return const SizedBox();
  }
}
